<block name="phpscript"></block>
<?php
$footer = 'template';
?>
<!DOCTYPE html>
<html>
<head>
	<title>extend tests</title>
	<style type="text/css">
		.body{
			/*这是扩展文件样式*/
		}
	</style>
	<block name="style"></block>
</head>
<body>
<block name="content"></block>

<p>extend 测试调用 test 获取footer:<?php echo test($footer);?></p>
<block name="script"></block>
</body>
</html>